import { v4 as uuidv4 } from 'uuid';
export const getUUID = () => {
    let uuid_token = localStorage.getItem("UUIDTOKEN");
    //判断本地存储有没有uuid
    if (!uuid_token) {
        //没有则创建uuid并放在localstorage中
        uuid_token = uuidv4();
        localStorage.setItem("UUIDTOKEN", uuid_token);
    }
    return uuid_token;
}